package com.star.cat.persitent.model;

import java.io.Serializable;
import java.time.Instant;

import com.alibaba.fastjson.JSON;

import lombok.Data;

/**
 * 持久化实体模型
 * @author liguangcai
 * @date 2018/08/31 10:54
 */
@Data
@SuppressWarnings("serial")
public class PerModel implements Serializable{
	
	private String key;
	private String value;
	private Instant expireTime;
	
	public PerModel(String key, String value,Instant expireTime) {
		super();
		this.key = key;
		this.value = JSON.toJSONString(value);
		this.expireTime = expireTime;
	}
	public PerModel(String key, Object value) {
		super();
		this.key = key;
		this.value = JSON.toJSONString(value);
	}
	public PerModel() {
		super();
	}

	
	
}
